﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartSpace.Workflow
{
    public class WorkflowDriveRecord
    {
        public Guid Id { get; set; }

        public Guid RecordId { get; set; }

        public Guid InstanceId { get; set; }
        public WorkflowInstance Instance { get; set; }

        public Guid WorkflowId { get; set; }
        public WorkflowMetadata Workflow { get; set; }

        public Guid ActivityId { get; set; }
        public ActivityMetadata Activity { get; set; }

        public Guid EventId { get; set; }

        public DateTime DrivedDate { get; set; }

        /// <summary>
        /// 发送人
        /// </summary>
        public Guid SenderId { get; set; }

        /// <summary>
        /// 接收目标的Id
        /// </summary>
        public Guid ReceiverId { get; set; }
        /// <summary>
        /// 接收目标类型
        /// </summary>
        public WfReceiverType ReceiverType { get; set; }

        /// <summary>
        /// 是否是活动的步骤
        /// </summary>
        public bool IsActivated { get; set; }

        public List<WorkflowDriveRecord> Children { get; set; }
        public Guid? ParentId { get; set; }
        public WorkflowDriveRecord Parent { get; set; }
    }
}
